﻿namespace Yom.Model
{
    using System;

    /// <summary>
    /// 漫画实体对象
    /// 
    /// 创建: 邱柯皓 2009/01/19 08:29
    /// </summary>
    public class Comic
    {
        #region 私有成员定义
        private long _ComicID;
        private int _CategoryID;
        private string _Author;
        private string _FaceExt;
        private char _Initial;
        private string _ComicName;
        private string _OtherName;
        private int _State;
        private string _Tag;
        private string _Intro;
        private int _Language;
        private int _Color;
        private bool _IsTop;
        private bool _IsCheck;
        private int _Visit;
        private DateTime _JoinTime;
        private DateTime _LastTime;
        #endregion

        #region 成员属性暴露
        /// <summary>
        /// 漫画编号
        /// </summary>
        public long ComicID { get { return this._ComicID; } set { this._ComicID = value; } }

        /// <summary>
        /// 所属分类编号
        /// </summary>
        public int CategoryID { get { return this._CategoryID; } set { this._CategoryID = value; } }

        /// <summary>
        /// 漫画作者
        /// </summary>
        public string Author { get { return this._Author; } set { this._Author = value; } }

        /// <summary>
        /// 封面后缀
        /// </summary>
        public string FaceExt { get { return this._FaceExt; } set { this._FaceExt = value; } }

        /// <summary>
        /// 所属字母
        /// </summary>
        public Char Initial { get { return this._Initial; } set { this._Initial = value; } }

        /// <summary>
        /// 漫画名称
        /// </summary>
        public string ComicName { get { return this._ComicName; } set { this._ComicName = value; } }

        /// <summary>
        /// 漫画其他名称
        /// </summary>
        public string OtherName { get { return this._OtherName; } set { this._OtherName = value; } }

        /// <summary>
        /// 漫画状态, 0为连载, 1为暂停, 2为完结
        /// </summary>
        public int State { get { return this._State; } set { this._State = value; } }

        /// <summary>
        /// 漫画关键字, 使用;号分隔
        /// </summary>
        public string Tag { get { return this._Tag; } set { this._Tag = value; } }

        /// <summary>
        /// 漫画简介
        /// </summary>
        public string Intro { get { return this._Intro; } set { this._Intro = value; } }

        /// <summary>
        /// 漫画语言, 0为简体, 1为繁体, 2为日语, 3为英语, 4为其他
        /// </summary>
        public int Language { get { return this._Language; } set { this._Language = value; } }

        /// <summary>
        /// 漫画颜色, 0为黑色, 1为彩色, 2为未知
        /// </summary>
        public int Color { get { return this._Color; } set { this._Color = value; } }

        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsTop { get { return this._IsTop; } set { this._IsTop = value; } }

        /// <summary>
        /// 是否显示
        /// </summary>
        public bool IsCheck { get { return this._IsCheck; } set { this._IsCheck = value; } }

        /// <summary>
        /// 阅读数量
        /// </summary>
        public int Visit { get { return this._Visit; } set { this._Visit = value; } }

        /// <summary>
        /// 加入时间
        /// </summary>
        public DateTime JoinTime { get { return this._JoinTime; } set { this._JoinTime = value; } }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime LastTime { get { return this._LastTime; } set { this._LastTime = value; } }
        #endregion

        #region 构造函数
        public Comic() { }

        public Comic(long comicID, int categoryID, string author, string faceExt, char initial, string comicName,
            string otherName, int state, string tag, string intro, int language, int color, bool isTop,
            bool isCheck, int visit, DateTime joinTime, DateTime lastTime)
        {
            this._ComicID = comicID;
            this._CategoryID = categoryID;
            this._Author = author;
            this._FaceExt = faceExt;
            this._Initial = initial;
            this._ComicName = comicName;
            this._OtherName = otherName;
            this._State = state;
            this._Tag = tag;
            this._Intro = intro;
            this._Language = language;
            this._Color = color;
            this._IsTop = isTop;
            this._IsCheck = isCheck;
            this._Visit = visit;
            this._JoinTime = joinTime;
            this._LastTime = lastTime;
        }
        #endregion
    }
}